package com.ygqh.baby.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.ygqh.baby.ao.AppType;
import com.ygqh.baby.ao.QueryInfo;
import com.ygqh.baby.po.YgUserAuths;
import com.ygqh.baby.po.YgUserAuthsExample;

public interface YgUserAuthsMapper {
	int countByExample(YgUserAuthsExample example);

	int deleteByExample(YgUserAuthsExample example);

	int deleteByPrimaryKey(Long id);

	int insert(YgUserAuths record);

	int insertSelective(YgUserAuths record);

	List<YgUserAuths> selectByExample(YgUserAuthsExample example);

	YgUserAuths selectByPrimaryKey(Long id);

	int updateByExampleSelective(@Param("record") YgUserAuths record, @Param("example") YgUserAuthsExample example);

	int updateByExample(@Param("record") YgUserAuths record, @Param("example") YgUserAuthsExample example);

	int updateByPrimaryKeySelective(YgUserAuths record);

	int updateByPrimaryKey(YgUserAuths record);

	int countSuper(@Param("q") String q);

	List<YgUserAuths> selectSuper(@Param("queryInfo") QueryInfo queryInfo, @Param("q") String q);

	String getOpenId(@Param("userId") Long userId, @Param("platformNo") String paltformNo, @Param("appType") AppType appType);

}
